package com.dwy2002.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dwy2002.pojo.dto.rooms.ReserveRoomDTO;
import com.dwy2002.pojo.po.order.OrderRoom;
import com.dwy2002.pojo.po.rooms.Rooms;

/**
 * @author 杜伟毅
 * @version 1.0
 * @since 2025/03/06
 */
public interface IOrderRoomService extends IService<OrderRoom> {
    /**
     * 保存订单商品类
     *
     * @param orderId 订单ID
     * @param dto     订单包间类DTO
     * @author 杜伟毅
     * @since 2025/3/10 0010 22:20
     */
    void saveOrderRoom(String orderId, ReserveRoomDTO dto);

    /**
     * 查询包间信息
     *
     * @param orderId 订单ID
     * @return 返回包间类
     * @author 杜伟毅
     * @since 2025/3/12 0012 19:45
     */
    Rooms getRoomsByOrderId(String orderId);

    /**
     * 根据订单id删除查询信息
     *
     * @param orderId 订单ID
     * @author 杜伟毅
     * @since 2025/3/12 0012 17:04
     */
    void deleteOrderRoom(String orderId);
}
